package com.itheima.demo001;

public class exercise30 {
    public static void main(String[] args) {
        //带参数的方法定义和调用
        getSum(10,20);
        getSum(20,30);
        getSum(30,40);
        getSum(40,50);
        getSum(50,60);
    }
    public static void getSum(int num1,int num2){
        int result = num1 + num2;
        System.out.println(result);
    }
}
